package com.lysj.bhp.wallet.repository;


import com.lysj.bhp.wallet.domain.EthereumWallet;
import org.springframework.data.jpa.repository.JpaRepository;


public interface EthereumWalletRepository extends JpaRepository<EthereumWallet, Long> {

    EthereumWallet findByUserId(Long userId);

    /**
     * 查询以太坊钱包距离上次查询最久的钱包
     * @return
     */
    EthereumWallet findFirstByOrderByLastQueryTimeAsc();

}
